package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectClazzDTO;
import com.itheima.tlias84.po.*;
import com.itheima.tlias84.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClazzService {
    ResultUtil selectClazzByPage(SelectClazzPageParam param);
    //根据id删除班级
    int deleteById(Integer id);
    //添加班级
    int insertClazz(InsterClazzParam param);
    //根据id查询班级
    SelectClazzDTO selectClazzById(@Param("id") Integer id);
    //更新班级
    int updateClazz(@Param("p") UpdateClazzParam param);

    List<SelectClazzDTO> selectAll();
}
